<?xml version="1.0" encoding="US-ASCII"?>

<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks"
    xmlns="http://www.w3.org/1999/xhtml"
    exclude-result-prefixes="xlink suwl"
    version="1.0">

<xsl:template match="computeroutput">
<!--FIXME syncro with  FO stylesheets -->
  <xsl:call-template name="inline.monoseq"/>
</xsl:template>

<xsl:template match="lineannotation">
<!--FIXME change CSS-->
  <em class="{local-name(.)}">
    <xsl:call-template name="inline.charseq"/>
  </em>
</xsl:template>

<xsl:template match="keycombo">
<!--FIXME syncro with  FO stylesheets -->
  <xsl:variable name="action" select="@action"/>
  <xsl:variable name="joinchar">
    <xsl:choose>
      <xsl:when test="$action='seq'"><xsl:text> </xsl:text></xsl:when>
      <xsl:when test="$action='simul'">+</xsl:when>
      <xsl:when test="$action='press'">-</xsl:when>
      <xsl:when test="$action='click'">-</xsl:when>
      <xsl:when test="$action='double-click'">-</xsl:when>
      <xsl:when test="$action='other'"/>
      <xsl:otherwise>-</xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  <xsl:for-each select="*">
    <xsl:if test="position()&gt;1"><xsl:value-of select="$joinchar"/></xsl:if>
    <xsl:apply-templates select="."/>
  </xsl:for-each>
</xsl:template>

</xsl:stylesheet>
